package com.yc.cloud.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yc.cloud.admin.dto.request.ProductCreateParam;
import com.yc.cloud.admin.dto.request.ProductUpdateParam;
import com.yc.cloud.common.basic.dto.BaseQueryParam;
import com.yc.cloud.entity.Product;

import java.util.List;

/**
 * <p>
 * 用户与绘本关联 服务类
 * </p>
 *
 * @author Yancy
 * @since 2024-01-21
 */
public interface ProductService extends IService<Product> {

    /***
     * description:查询列表
     * @param param 查询条件
     * @return 数据信息
     */
    IPage<Product> list(BaseQueryParam param);

    Product convertVo(Product product);

    List<Product> convertVo(List<Product> productList);

    Product create(ProductCreateParam param);

    Product get(Long id);

    Product update(Long id, ProductUpdateParam product);

    boolean delete(Long id);
}



